package com.zz.shop.dao;

import com.zz.shop.entity.User;

import java.sql.SQLException;

public interface UserDao {
    User findUserByName(String username) throws SQLException;

    int insertUser(User u) throws SQLException;

    User getUserByEmailAndCode(String email, String code) throws SQLException;

    int activate(int uid) throws SQLException;

    User getUserByUsername(String username) throws SQLException;
}
